<?php
/**
* Bysoft
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com and you will be sent a copy immediately.
*
* @category   Bysoft
* @package    Bysoft_Flashnavigator
* @author     Bysoft
* @copyright  Copyright (c) 2009 Bysoft (http://www.bysoft.fr)
* @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
*/ 
class Bysoft_Flashnavigator_IndexController extends Mage_Core_Controller_Front_Action
{
    public function indexAction()
    {
    	
    	/*
    	 * Load an object by id 
    	 * Request looking like:
    	 * http://site.com/flashnavigator?id=15 
    	 *  or
    	 * http://site.com/flashnavigator/id/15 	
    	 */
    	/* 
		$flashnavigator_id = $this->getRequest()->getParam('id');

  		if($flashnavigator_id != null && $flashnavigator_id != '')	{
			$flashnavigator = Mage::getModel('flashnavigator/flashnavigator')->load($flashnavigator_id)->getData();
		} else {
			$flashnavigator = null;
		}	
		*/
		
		 /*
    	 * If no param we load a the last created item
    	 */ 
    	/*
    	if($flashnavigator == null) {
			$resource = Mage::getSingleton('core/resource');
			$read= $resource->getConnection('core_read');
			$flashnavigatorTable = $resource->getTableName('flashnavigator');
			
			$select = $read->select()
			   ->from($flashnavigatorTable,array('flashnavigator_id','title','content','status'))
			   ->where('status',1)
			   ->order('created_time DESC') ;
			   
			$flashnavigator = $read->fetchRow($select);
		}
		Mage::register('flashnavigator', $flashnavigator);
		*/

			
		$this->loadLayout();     
		$this->renderLayout();
    }
}